package com.lcy.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lcy.reggie.common.Result;
import com.lcy.reggie.dto.DishDto;
import com.lcy.reggie.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ChunBaBa_
* @description 针对表【dish(菜品管理)】的数据库操作Service
* @createDate 2023-01-17 13:59:03
*/
public interface DishService extends IService<Dish> {

    Result<Page> pageResult(Integer page, Integer pageSize,String name);

    Result<String> saveDish(DishDto dishDto);

    Result<DishDto> selectById(Long id);

    Result<String> update(DishDto dishDto);

    Result<String> deleteById(List<Long> id);

    Result<String> updateStatus(Integer status, List<Long> id);

    Result<List<DishDto>> list(Dish dish);
}
